Add harness-cstats to collect C method stats#158
Conversation
|
The "C loop method iterations" part might be also useful for reducing the number of exits due to |
maximecb
left a comment
There was a problem hiding this comment.
This is really cool!
I have one feature request: when listing the C method calls, can you also list the percentage of total C calls that it represents in parentheses. Might also be nice to show the total count of C calls before the list.
e.g.
Total C calls: 140308043 (100%)
115300 Kernel#is_a? (2.3%)
|
Nice suggestion 👍 I implemented that in ccf8b44. I also added the results for all headline benchmarks with the latest Ruby in the PR description for convenience. |
|
This looks good to me, and definitely harmless since it's a new separate harness. I'll merge. |
This PR adds a harness to do the same thing as #123, collecting C method statistics, whenever we want.
Example
activerecord
Details
hexapdf
Details
liquid-render
Details
mail
Details
psych-load
Details
railsbench
Details
ruby-lsp
Details